package com.atboluo.springcloud.service.impl;


import com.atboluo.springcloud.dao.PaymentDao;
import com.atboluo.springcloud.entity.Payment;
import com.atboluo.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author 牵风散步的雲
* @Description //T
 * service实现类
* @Date 2023-2-19 13:41
* @param  * @param null
* @return
**/
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentDao paymentDao;

    public int create(Payment payment){
        return paymentDao.create(payment);
    }


    public Payment getPaymentById(Long id){
        return paymentDao.getPaymentById(id);
    }

}
